'''
Created on 2011-7-11

@author: Administrator
'''
from google.appengine.ext import db
class Stream(db.Model):
    type = db.IntegerProperty(required=True, default=1, choices=[1, 2, 3, 4])
    owner = db.StringProperty(required=True) # owner user key
    owner_uid = db.IntegerProperty(required=True)
    title = db.StringProperty(required=True)
    read_policy = db.StringProperty()
    write_policy = db.StringProperty()
    created_time = db.DateTimeProperty(auto_now_add=True)
    version = db.FloatProperty(default=1.0)
    
